{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "from pandas import Series, DataFrame\n",
    "import matplotlib.pyplot as plt\n",
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x27eb65d5488>"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAD1CAYAAABTL05uAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAN9ElEQVR4nO3de4yldX3H8feH5VIRirQ7BVxYViumYmwpTtCWptJ4KRcLvWgC/CEa6aatBPtP07U0kJi0WZMmpo2mdltQ6AUspOoatoJA0LbedsCVu7LQFbbLZQULQah04ds/zrNhOsyyl/PMM4f5vV/JZM45z8P5fTl75j3PPHNmJlWFJGnp22+xB5AkDcPgS1IjDL4kNcLgS1IjDL4kNcLgS1Ij9l/sAXZl+fLltWrVqsUeQ5JeVm655ZYfVNXUfNsmNvirVq1iZmZmsceQpJeVJN/f1TZP6UhSI3oJfpLLkjya5I5dbD8lyRNJNnVvF/exriRpz/V1SuczwCeAK15in3+rqnf3tJ4kaS/1coRfVV8FHu/jviRJC2PIc/i/lOQ7Sf41yRsHXFeSxHCv0rkVOLaqnkpyOvB54Li5OyVZDawGWLly5UCjSVIbBjnCr6onq+qp7vIG4IAky+fZb11VTVfV9NTUvC8jlSTto0GCn+TIJOkun9St+9gQa0uSRno5pZPkSuAUYHmSrcAlwAEAVfUp4D3A7yfZATwDnF3+5RVJA1q15tqx/vsta8/oaZLF00vwq+q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     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "s1 = Series(np.random.randn(1000)).cumsum()\n",
    "# kind参数是修改画图类型\n",
    "s1[:10].plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0   -0.497261\n",
       "1   -0.577516\n",
       "2    0.323990\n",
       "3   -0.296834\n",
       "4    0.087232\n",
       "5   -0.825871\n",
       "6   -0.545610\n",
       "7   -0.016195\n",
       "8    1.464126\n",
       "9    0.710713\n",
       "dtype: float64"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "s1[:10]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
